<?php
// +----------------------------------------------------------------------
// | 前台应用路由配置
// +----------------------------------------------------------------------

use think\facade\Route;

// 前台首页
Route::get('/', 'Index/index');

// 前台信息接口
Route::get('info', 'Index/info');

// 前台联系表单
Route::post('contact', 'Index/contact');

// 测试路由
Route::get('test', function () {
    return json(['message' => '前台应用测试路由工作正常']);
});

// MQTT Demo
Route::get('mqtt/ping', 'MqttDemo/ping');
Route::post('mqtt/publish', 'MqttDemo/publish');

